//添加任务
export const AddTodolistAC = (payload)=>{
    return{
        type:'addTodoList',
        payload
    }
}
//是否完成任务
export const UpdateTodolistAC = (payload)=>{
    return{
        type:'updateTodoList',
        payload
    }
}

//时间是否过期
export const UpdateOldTimeAC = (payload)=>{
    return{
        type:'updateOldTime',
        payload
    }
}

//顺延
export const mapOldToTodayAC = (payload)=>{
    return{
        type:'mapoldtotoday',
        payload
    }
}

//修改标题
export const updateTitleAC = (payload)=>{
    return{
        type:'updateTitle',
        payload
    }
}

//添加细分任务
export const addstepAC = (payload)=>{
    return{
        type:'addstep',
        payload
    }
}

//删除孩子的iD
export const delChildtaskAC = (payload)=>{
    return{
        type:'delchildtask',
        payload
    }
}

//修改孩子的状态
export const updateChildtaskAC = (payload)=>{
    return{
        type:'updatechilddone',
        payload
    }
}
//修改孩子标题
export const changeChildTitleAC = (payload)=>{
    return{
        type:'updatechildtitle',
        payload
    }
}